/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.composite;/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/12/29 16:46
 * Update Date Time:
 */

public class Leaf extends Component{
    public Leaf(String name) {
        super(name);
    }

    @Override
    void add(Component component) {

    }

    @Override
    void del(Component component) {

    }

    @Override
    public void display(int depat) {
        System.out.println(depat+"-" + this.name);
    }
}
